package com.zs.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.blog.model.ResponseResult;
import com.zs.blog.model.dto.TagEditDTO;
import com.zs.blog.model.dto.TagSearchDTO;
import com.zs.blog.model.entity.Tag;
import com.zs.blog.model.vo.*;

import java.util.List;

/**
 * @Title: ITagService
 * @Author zs
 * @Package com.zs.blog.service
 * @Date 2024/10/13 21:16
 * @description: 标签服务层接口
 */
public interface ITagService extends IService<Tag> {

    /**
     * 获取标签分页列表
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfoVO<TagListVO> listTagWithPagination(Integer pageNum, Integer pageSize);

    PageInfoVO<TagListVO> listTagBySearchCondition(TagSearchDTO tagSearchDTO);

    ResponseResult<?> deleteTagByIds(List<Integer> tagIdList);

    void addOrUpdateTag(TagEditDTO tagEditDTO);

    TagEditVO getTagByTagId(Long tagId);

    List<TagListVO> listTag();
}
